package dbz.domain.turn;

import dbz.domain.Fighter;
import dbz.domain.Ki;
import dbz.domain.player.Player;

public class Turn {

	private Fighter attackingFighter;
	private Fighter defensiveFighter;
	private Player activePlayer;
	private Player passivePlayer;
	private Integer remainingPowerUpActions;
	private int remainingAttackActions;
	
	public Turn(Player activePlayer, Player passivePlayer, Fighter attackingFighter, Fighter defensiveFighter) {
		this.activePlayer = activePlayer;
		this.passivePlayer = passivePlayer;
		this.attackingFighter = attackingFighter;
		this.defensiveFighter = defensiveFighter;
		this.remainingPowerUpActions = 1;
	}
	
	public Boolean isAbleToPowerUp() {
		return remainingPowerUpActions > 0;
	}	

	public Fighter getAttackingFighter() {
		return attackingFighter;
	}


	public void setAttackingFighter(Fighter attackingFighter) {
		this.attackingFighter = attackingFighter;
	}


	public Fighter getDefensiveFighter() {
		return defensiveFighter;
	}


	public void setDefensiveFighter(Fighter defensiveFighter) {
		this.defensiveFighter = defensiveFighter;
	}

	public Player getActivePlayer() {
		return activePlayer;
	}

	public void setActivePlayer(Player activePlayer) {
		this.activePlayer = activePlayer;
	}

	public Player getPassivePlayer() {
		return passivePlayer;
	}

	public void setPassivePlayer(Player passivePlayer) {
		this.passivePlayer = passivePlayer;
	}

	public void powerUpUsed() {
		remainingPowerUpActions --;
		
	}

	public void attackActionUsed() {
		remainingAttackActions --;
		
	}
	
}
